package com.heifei

/**
 * @author caizhengjun01@gmail.com
 * @date 2020/8/4 4:38 下午
 */
object TupleDemo {

  def m(x: Int, y: Double) = {
    val x1 = x * 10
    val y1 = y * 100
    val w1 = "Hello"
    (x1, y1, w1)
  }

  def main(args: Array[String]): Unit = {

    val tp = (1, 2, 3, 4, 4.4, "Hello", "Scala")

    val tuple: (Int, Double, String) = m(1, 2.0)

    val value = tuple._3

    println(value)
  }
}
